<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php
echo'<title>';
if ( is_home() ) {
	// Blog's Home
	echo get_bloginfo('name') . '  &raquo; Weblog';
} elseif ( is_single() or is_page() ) {
	// Single blog post or page
	wp_title(''); echo ' - ' . get_bloginfo('name');
} elseif ( is_category() ) {
	// Archive: Category
	echo get_bloginfo('name') . ' &raquo; Kategorie: '; single_cat_title();
} elseif ( is_day() ) {
	// Archive: By day
	echo get_bloginfo('name') . ' &raquo; Alle Artikel vom ' . get_the_time('d') . '. ' . get_the_time('F') . ' ' . get_the_time('Y');
} elseif ( is_month() ) {
	// Archive: By month
	echo get_bloginfo('name') . ' &raquo; Alle Artikel vom ' . get_the_time('F') . ' ' . get_the_time('Y');
} elseif ( is_year() ) {
	// Archive: By year
	echo get_bloginfo('name') . ' &raquo; Alle Artikel vom Jahr ' . get_the_time('Y');
} elseif ( is_search() ) {
	// Search
	echo get_bloginfo('name') . ' &raquo; Suche:  	&lsaquo;' . wp_specialchars($s, 1) . '&rsaquo;';
} elseif ( is_404() ) {
	// 404
	echo get_bloginfo('name') . '  &raquo; 404 - Angeforderte Seite nicht gefunden';
} else {
	// Everything else. Fallback
	echo wp_title(''); echo ' - ' . get_bloginfo('name');
}
echo'</title>';
?>
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css"/>
<link href='http://fonts.googleapis.com/css?family=Chango|Imprima|Happy+Monkey' rel='stylesheet' type='text/css'>
<meta name="author" content="" />
<meta name="publisher" content="" />
<meta name="copyright" content="" />
<meta name="distribution" content="" />
<meta name="description" content= "" />
<meta name="keywords" content="" />
<?php
if ( (is_home() && !is_paged()) || is_single() || is_page() ) : ?>
<meta name="robots" content="index, follow" />
<?php else: ?>
<meta name="robots" content="noindex, follow" />
<?php endif; ?>
<link rel="shortcut icon" type="image/ico" href="<?php bloginfo('template_directory'); ?>/images/favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if(is_single() || is_page()) {?>
<script src="<?php bloginfo('template_url'); ?>/script_quicktags-c.js" type="text/javascript"></script>
<?php } ?>
<?php wp_head(); ?><link href='http://fonts.googleapis.com/css?family=Chango|Imprima|Happy+Monkey' rel='stylesheet' type='text/css'>
</head>
<body>
<?php $yamlconfig = new di_yaml_config();?>
<div id="page_margins">
	<div id="page">
<?php
if ( $yamlconfig->di_getOptionValue('di_login') === 1 ) : 
		include(TEMPLATEPATH. '/login-navigation.php');
endif;
	include(TEMPLATEPATH. '/blogheader.php');
if ( $yamlconfig->di_getOptionValue('di_navi') === 2 ) :
	include(TEMPLATEPATH. '/topnavi.php');
endif;
?>